﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Miao.Stand
{
    public class Command_StandAction: CommandStandCooldown
    {
		public Command_StandAction(StandAbility ability) : base(ability)
		{

		}
		public Action action;
        public Action onHover;

        private Color? iconDrawColorOverride;
        public override Color IconDrawColor => iconDrawColorOverride ?? base.IconDrawColor;
		public override void ProcessInput(Event ev)
		{
			base.ProcessInput(ev);
			action();
		}

		public override void GizmoUpdateOnMouseover()
		{
			if (onHover != null)
			{
				onHover();
			}
		}

		public void SetColorOverride(Color color)
		{
			iconDrawColorOverride = color;
		}

	}
}
 